<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonList.jsp" %>
<html>
<head>
<script language="JavaScript"  src="${ctx}/scripts/common/prototype.js"></script>
<script type="text/javascript">
	//记录当前记录的ID
	var selectedRecordID="";

 	function resize(){
		parent.window.document.all('charStoChoList').style.height=document.body.scrollHeight;
	}

	//当改点选表格行数据时，触发本事件
	function changeID(id){
		selectedRecordID = id;
	}
	//刷新当前页面
	function freshFrame(){
		document.forms.ec.ec_p.value=document.getElementById("ec_p").value;
		document.forms.ec.submit();
	}

	function init(){
		$('buildingID').value=parent.$F('buildingID');
		$('houseNumber').value=parent.$F('houseNumber');
		$('chargeItemID').value=parent.$F('chargeItemID');
		$('chargeStaID').value=parent.$F('chargeStaID');
	}
</script>

</head>
<body onload="resize();init();">
<div style="height:380px;overflow:auto;">
<ec:ceTable items="charStaChoList"
	action="${ctx}/charge_charStoChoAction.do?method=queryFixedChoList"
	var="charStaChoItem"
	view="pmsview"
	styleClass="gridData2"
	rowsDisplayed="15" >
	<ec:ceRow styleClass="grid"
	 onclick="changeID(${charStaChoItem.keyword})" onContextMenu="return ShowContextMenu(event,'quick_rightmenu')" >
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.houseNumber}" property="houseNumber"  width="10%" styleClass="align_left" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.ownerName}" property="ownerName" width="16%" styleClass="align_left"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.chargeItemName}" property="chargeItemName" width="13%" styleClass="align_left"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.chargeStaName}" property="chargeStaName"  width="13%" styleClass="align_left"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.startTime}" property="startTime"  width="18%" styleClass="align_left"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.endTime}" property="endTime"  width="18%" styleClass="align_left"/>
	</ec:ceRow>

	<ec:parameter name="buildingID"></ec:parameter>
	<ec:parameter name="houseNumber"></ec:parameter>
	<ec:parameter name="chargeItemID"></ec:parameter>
	<ec:parameter name="chargeStaID"></ec:parameter>
</ec:ceTable>
</div>
    <!--------------------右键显示 新增更多菜单 开始---------------------->
<div id="quick_rightmenu" style="display:none;"
	oncontextmenu="return false" class="quick_rightmenu">
<table width="100%" border="0" cellpadding="0" cellspacing="0"
	class="grid_quickMenu_bg">
	<tr>

		<td>
		<table width="100%" border="0" cellpadding="2" cellspacing="0">
		<pms:AuthTag authName="charge_charStoChoAction.do?method=initAddFixedCho">
			<tr>
				<td class="quickMenu_toolbarico"><a href="#"
					onClick="parent.openNewFixed();" onFocus="this.blur()"><img
					src="${ctx}/images/ico_newfile.gif" border="0" align="absbottom"
					alt="${key.add}" />&nbsp;${key.add}</a></td>
			</tr>
  </pms:AuthTag>
  <pms:AuthTag authName="charge_charStoChoAction.do?method=initEditFixedCho">
			<tr>
				<td class="quickMenu_toolbarico"><a href="#"
					onFocus="this.blur()" onClick="parent.openEditFixed();"><img
					src="${ctx}/images/ico_amend.gif" alt="" width="16" height="16"
					border="0" align="absbottom" alt="${key.modify}"/> ${key.modify}</a></td>
			</tr>
</pms:AuthTag>
<pms:AuthTag authName="button.nopage.common.selectChangeStandenSelect.three">
			<tr>
				<td class="quickMenu_toolbarico"><a href="#"
					onClick="parent.showDelete();" onFocus="this.blur()"><img
					src="${ctx}/images/ico_delete.gif" alt="" width="16" height="16"
					border="0" align="absbottom" alt="${key.delete}"/> ${key.delete}</a></td>
			</tr>
</pms:AuthTag>
		</table>
		</td>
	</tr>
</table>
</div>

</body>
</html>